import request from '@/utils/request'
const api_name='/copyrightin/copyrightin'

export default {
  findPageCopyrightin(pageNo,pageSize,copyrightinQuery){
    return request({
      url:`${api_name}/${pageNo}/${pageSize}`,
      method: 'post',
      data:copyrightinQuery
    })
  },
  findPageCopyrightinMan(pageNo,pageSize,ManQuery){
    return request({
      url:`${api_name}/findpage/${pageNo}/${pageSize}`,
      method:'post',
      data:ManQuery
    })
  },
  saveMan(copyrightin){
    return request({
      url:`${api_name}/saveMan`,
      method:'post',
      data:copyrightin
    })
  },
  deleteManById(id){
    return request({
      url:`${api_name}/deleteManById/${id}`,
      method:'delete'
    })
  },
  findAllcopyright(){
    return request({
      url:`${api_name}/findAll`,
      method:'post'
    })
  },
  getManById(id){
    return request({
      url:`${api_name}/getmanById/${id}`,
      method:'get'
    })
  },
  updateMan(copyrightin){
    return request({
      url:`${api_name}/updateManById`,
      method:'put',
      data:copyrightin
    })
  },
  saveCopyrightin(copyrightin) {
    return request({
      url:`${api_name}/saveCopyrightin`,
      method:'post',
      data: copyrightin
    })
  },
  view(id){
    return request({
      url:`${api_name}/getCopyrightinById/${id}`,
      method:'get'
    })
  },
  updateCopyrightin(copyrightin){
    return request({
      url:`${api_name}/updateCopyrightinById`,
      method:'put',
      data:copyrightin
    })
  },
  deleteCopyrightin(id){
    return request({
      url:`${api_name}/deleteCopyrightinById/${id}`,
      method:'delete'
    })
  }
}
